<template>
	<view class="content">
		<view class="nickName">
			<text>请输入新昵称，30天内限修改一次</text>
		</view>
		<view class="nickName_text">
			<input type="text" v-model="inputValue"  value='' />
			<image src="../../../static/images/a14.png" mode=""  @tap='qc'></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				inputValue:''
			};
		},
		onLoad(optins) {
			this.inputValue = optins.name
		},
		 onNavigationBarButtonTap() {  
		      uni.setStorageSync('name',this.inputValue)
					uni.navigateTo({
						url:'../personal/personal'
					})
		    }  ,
		methods:{
			qc(){
			 this.inputValue ='';
			}
		}
	}
</script>

<style lang="scss">
	.content{
		background: #f5f5f5;
		height: 100vh;
		.nickName{
			padding: 20rpx;
			text{
				font-size: 24rpx;
				color: #9E9E9E;
			}
		}
		.nickName_text{
			background: #fff;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 0 20rpx 0 0;
			input{
				
				padding: 20rpx;
			}
			image{
				width: 32rpx;
				height: 32rpx;
			}
		}
	}
</style>
